import request from '@/utils/request'

// 查询黑白名单配置列表
export function sysListConfigList(query) {
    return request({
      url: '/fkmalls-bac/sysListConfig/list',
      method: 'POST',
      data: query
    })
  }

// 新增黑白名单配置
export function sysListConfigAdd(query) {
  return request({
    url: '/fkmalls-bac/sysListConfig/add',
    method: 'post',
    data: query
  })
}
//修改黑白名单配置
export function sysListConfigUpdate(data) {
  return request({
    url: '/fkmalls-bac/sysListConfig/update',
    method: 'post',
    data: data
  })
}
//修改状态
export function updateListConfigStatus(data) {
    return request({
      url: "/fkmalls-bac/sysListConfig/updateListConfigStatus?id="+data.id+"&status="+data.status,
      method: 'post',
    })
  }

export function sysListConfigDelete(id) {
   return request({
     url: `/fkmalls-bac/sysListConfig/delete/${id}`,
     method: 'post',
   })
  }   